<?php if ($pagination['page']): ?>
<div>
  <ul class="pagination">
  <!-- Back to first page -->
  <?php if ($currentPage > 1): ?>
    <li><a href="<?php echo (empty($pagePrefix)?'':($pagePrefix)) ?>?page=<?php echo '1&q='. urlencode($q) .'&order_by='. $order_by .'&order_way='. $order_way; ?>">&laquo;</a></li>
  <?php else : ?>
    <li><span>&laquo;</span></li>
  <?php endif; ?>
  
  <!-- Back to prev page -->
  <?php if ($currentPage > 2): ?>
    <li><a href="<?php echo (empty($pagePrefix)?'':($pagePrefix)) ?>?page=<?php echo ($currentPage-1).'&q='. urlencode($q) .'&order_by='. $order_by .'&order_way='. $order_way; ?>">&lt;</a></li>
  <?php else : ?>
    <li><span>&lt;</span></li>
  <?php endif; ?>
  
  <!-- Skiped pages -->
  <?php if ($pagination['start'] > 1): ?>
    <li><span>...</span></li>
  <?php endif; ?>
  
  <!-- pages -->
  <?php for($i=$pagination['start']; $i <= $pagination['stop']; $i++): ?>
    <li <?php if($i==$currentPage) echo 'class="active"'; ?>><a href="<?php echo (empty($pagePrefix)?'':($pagePrefix)) ?>?page=<?php echo $i .'&q='. urlencode($q) .'&order_by='. $order_by .'&order_way='. $order_way . (empty($pageSuffix)?'':('&'.$pageSuffix)); ?>"><?php echo $i; ?></a></li>
  <?php endfor; ?>
  
  <!-- Skiped pages -->
  <?php if ($pagination['stop'] < $pagination['page']): ?>
    <li><span>...</span></li>
  <?php endif; ?>
  
  <!-- Go to next page -->
  <?php if ($currentPage + 1 <= $pagination['page']): ?>
    <li><a href="<?php echo (empty($pagePrefix)?'':($pagePrefix)) ?>?page=<?php echo ($currentPage + 1) .'&q='. urlencode($q) .'&order_by='. $order_by .'&order_way='. $order_way . (empty($pageSuffix)?'':('&'.$pageSuffix)); ?>">&gt;</a></li>
  <?php else: ?>
    <li><span>&gt;</span></li>
  <?php endif; ?>
  
  <!-- Go to last page -->
  <?php if ($currentPage < $pagination['page']): ?>
    <li><a href="<?php echo (empty($pagePrefix)?'':($pagePrefix)) ?>?page=<?php echo $pagination['page'] .'&q='. urlencode($q) .'&order_by='. $order_by .'&order_way='. $order_way . (empty($pageSuffix)?'':('&'.$pageSuffix)); ?>">&raquo;</a></li>
  <?php else: ?>
    <li><span>&raquo;</span></li>
  <?php endif; ?>
  </ul>
  
  <div class="pages"><?php echo $this->l('Affichés') .' '. count($items) .' / '. $total; ?> <?php echo $this->l('en') .' '. $pagination['page'] . $this->l('page(s)'); ?>  </div>
</div>
<?php endif; ?>

